package com.newtouch.fileupload.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document("videos")
public class VideoEO {
    @Id
    @Field("_id")
    private String id;
    private String traceNo;
    /**
     * 文件路径
     */
    private String path;
    private String status;
    private Long size;//视频字节大小
    /**
     * 视频时长
     */
    private String allTime;

    @CreatedDate
    private Date createdDt;
    @LastModifiedDate
    private Date updatedDt;
}
